package com.example.usercenter.enums;

/**
 * @Author hhf
 * @Date 2024/8/29
 * @Description
 */
public enum StatusEnum {
    SUCCESS(0, "请求成功"),
    SIMPLE_ERROR(40000, "异常错误"),
    PARAMS_ERROR(40001, "请求参数错误"),
    NULL_ERROR(40002, "请求数据为空"),
    NO_LOGIN(40100, "未登录"),
    NO_AUTH(40101, "无权限访问"),
    SYSTEM_ERROR(50000, "系统异常");


    StatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;

    private String msg;


    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
